package com.hmsproject.datastructures.event;

public class Event {
	
	
	private static int eventIdStatic = 0;
	
	private String eventId;
	public String getEventId() {
		return eventId;
	}

	private String eventName;
	private EventSchedule eventSchedule;
	public EventSchedule getEventSchedule() {
		return eventSchedule;
	}

	private String eventLocation;

	public String getEventLocation() {
		return eventLocation;
	}

	public Event(String eventName,String eventLocation,EventSchedule eventSchedule){
		this.eventName = eventName;
		this.eventLocation = eventLocation;
		this.eventSchedule = eventSchedule;
		this.eventId = eventIdStatic++ + "";
	}
	
	private Event(){}
	
	@Override
	public String toString(){
		return eventId;
	}
	
	@Override
	public boolean equals(Object event){
		return this.eventId.equals(((Event)event).getEventId());
	}	
	
	@Override
	public int hashCode(){
		return eventId.hashCode();
	}	
}
